<?php

class Df602_model extends Model {


    function Df602_model()
    {
        // Call the Model constructor
        parent::Model();
    }
    
    function get_all_client_info()
    {
        $query = $this->db->get('client');
        return $query->result();
    }
	
	function get_client_info($id)
	{
		$query = $this->db->getwhere('client', array('id' => $id));
		return $query->result();
	}

    function get_history()
    {
        $query = $this->db->get('history');
        return $query->result();
    }

    function get_realtime()
    {
        $query = $this->db->get('realtime');
        return $query->result();
    }
	
	function set_client($clientname)
	{
		$query = $this->db->set($client


}



?>